package com.jyxd.web.service.assessment.basic;

import com.jyxd.web.dao.basic.OperationInfoDao;
import com.jyxd.web.data.basic.OperationInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service
@Transactional
public class OperationInfoService {

    @Autowired
    private OperationInfoDao operationInfoDao;


    public boolean insert(OperationInfo operation){
        return operationInfoDao.insert(operation);
    }

    public boolean update(OperationInfo operation){


        return operationInfoDao.update(operation);
    }

    public OperationInfo queryData(String id){
        return operationInfoDao.queryData(id);
    }

    public List<Map<String, Object>> queryList(Map<String,Object> map){
        return operationInfoDao.queryList(map);
    }

    public int queryNum(Map<String,Object> map){return operationInfoDao.queryNum(map);}

    /**
     * 查询所有手术信息 status!=-1
     * @param map
     * @return
     */
    public List<OperationInfo> queryOperationList(Map<String,Object> map){
        return operationInfoDao.queryOperationList(map);
    }


}
